//
//  TestViewController.swift
//  MQLWeibo
//
//  Created by MQL-IT on 2016/10/26.
//  Copyright © 2016年 MQL-IT. All rights reserved.
//

import UIKit

class TestViewController: BaseViewController {

    override func viewDidLoad() {
        super.viewDidLoad()
        setupUI()
       title = "第\(navigationController?.childViewControllers.count ?? 0)个"
    }
    
    @objc fileprivate func pushNext() {
        let vc = TestViewController()
        
        navigationController?.pushViewController(vc, animated: true)
    }
    
    deinit {
        printLog(message: "我要释放了")
    }

}


extension TestViewController {
    override func setupUI() {
        super.setupUI()
        navItem.rightBarButtonItem = UIBarButtonItem(title: "下一个", target: self, action: #selector(pushNext))
    }
}
